	function gotopage() {
		if (document.getElementById("select").value == "4"){
			window.location.href="page_mon_live_honda.html";
		}     
		else{
			window.location.href="page_mon_live.html";
		}        
	}
	
	function goconsultacli() {
		if (document.getElementById("clicode").value == "32"){
			window.location.href="page_cons_clientes_ford.html";
		}
		else if (document.getElementById("clicode").value == "33"){
					window.location.href="page_cons_clientes_toyota.html";
		}
		else if (document.getElementById("clicode").value == "34"){
					window.location.href="page_cons_clientes_honda.html";
		}
		else if (document.getElementById("clicode").value == "35"){
					window.location.href="page_cons_clientes_volks.html";
		}		
		else{
			window.location.href="page_pesquisa.html";
		}        
	}

	function goconsultaped() {
		if (document.getElementById("pedcode").value == "4183"){
			window.location.href="page_cons_pedidos_4183.html";
		}
		else if (document.getElementById("pedcode").value == "4184"){
					window.location.href="page_cons_pedidos_4184.html";
		}
		else if (document.getElementById("pedcode").value == "4185"){
					window.location.href="page_cons_pedidos_4185.html";
		}	
		else{
			window.location.href="page_pesquisa.html";
		}        
	}
	
	function goconsultafunc() {
		if (document.getElementById("funcreg").value == "14124"){
			window.location.href="page_cons_funcionario_moto.html";
		}
		else if (document.getElementById("funcnome").value == "Stenio Garcia Faro"){
			window.location.href="page_cons_funcionario_moto.html";
		}				
		else{
			window.location.href="page_pesquisa.html";
		}        
	}
	
	function gotopes() {
		if (document.getElementById("searchbox").value == "Honda"){
			window.location.href="page_pesquisa_honda.html";
		}
		else if (document.getElementById("searchbox").value == "Volkswagen"){
					window.location.href="page_pesquisa_volks.html";
		}
		else{
			window.location.href="page_pesquisa.html";
		}        
	}
	

    var datefield=document.createElement("input")
    datefield.setAttribute("type", "date")
    if (datefield.type!="date"){ //if browser doesn't support input type="date", load files for jQuery UI Date Picker
        document.write('<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />\n')
        document.write('<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"><\/script>\n')
        document.write('<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"><\/script>\n')
    }

 

	if (datefield.type!="date"){ //if browser doesn't support input type="date", initialize date picker widget:
		jQuery(function($){ //on document.ready
			$('#birthday').datepicker();
		})
	}
